package com.young.springboot.schedule;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @description：
 * @author: yangyahui01
 * @date: 11/26/24 10:33 AM
 */
@ConfigurationProperties(prefix = "young.schedule.client")
public class YoungSchedulerProperties {

    public static final String HTTP = "http";

    private String appName;

    private int servicePort = 50091;

    private int corePoolSize;

    private int maxPoolSize;

    private String requestMethod = HTTP;

    public void setRequestMethod(String requestMethod) {
        this.requestMethod = requestMethod;
    }

    public String getRequestMethod() {
        return requestMethod;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public int getServicePort() {
        return servicePort;
    }

    public void setServicePort(int servicePort) {
        this.servicePort = servicePort;
    }

    public int getCorePoolSize() {
        return corePoolSize;
    }

    public void setCorePoolSize(int corePoolSize) {
        this.corePoolSize = corePoolSize;
    }

    public int getMaxPoolSize() {
        return maxPoolSize;
    }

    public void setMaxPoolSize(int maxPoolSize) {
        this.maxPoolSize = maxPoolSize;
    }

}
